﻿using IService;
using Microsoft.AspNetCore.SignalR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
    [Service]
    public class SignalRService : Hub, ISignalRService
    {
        /// <summary>
        /// 客户端发送消息方法 - 人员前端 【目前不用】
        /// </summary>
        /// <param name="method">方法（类型）</param>
        /// <param name="key">key</param>
        /// <param name="value">value</param>
        /// <returns></returns>
        public async Task<bool> SendMsg(string key, string value)
        {
            await Clients.All.SendAsync("ReceiveMsg", key, value);
            return true;
        }



    }
}
